#include<stdio.h>
#include<time.h>
#include<stdlib.h>
int add1, add2, result, sum,flag,count,score;
int Score = 0;
int mis = 0;
int main()
{
	do {
		srand(time(NULL));
		add1 = rand() % 10 + 1;
		add2 = rand() % 10 + 1;
		printf("%d+%d=", add1, add2);
		scanf("%d", &result);
		sum = add1 + add2;
		
		if (result == sum) {
			printf("Right!\n");
			score = 1;
		
		}
		else
		{
			printf("Not correct!\n");
			score = 0;
			mis += 1;
		}
		Score += score;
		count++;
	} while (count < 10);
	printf("Your score is %d\n", Score);
	printf("You made %d mistake(s)", mis);
}
	
	
	
